﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Data;
using System.Data.SqlClient;

namespace UI6Yao
{
    /// <summary>
    /// Interaction logic for WindowAnalysis.xaml
    /// </summary>
    public partial class WindowAnalysis : Window
    {
        public WindowAnalysis()
        {
            InitializeComponent();

            ZYO.基本概念.Class奇门遁甲 qm = new ZYO.基本概念.Class奇门遁甲(DateTime.Now);

            zf.Content = qm.p值符.ToString();
            zs.Content = qm.p值使.ToString();
            ListViewEmployeeDetails.DataContext = qm.dt奇盘.DefaultView;
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            ZYO.基本概念.Class奇门遁甲 qm = new ZYO.基本概念.Class奇门遁甲(DateTime.Parse(textBoxDT.Text.Trim()));

            zf.Content = qm.p值符.ToString();
            zs.Content = qm.p值使.ToString();
            ListViewEmployeeDetails.DataContext = qm.dt奇盘.DefaultView;

        }
    }
}
